package com.ruoyi.app.controller;

import com.ruoyi.system.domain.TBanner;
import com.ruoyi.system.service.ITBannerService;
import com.ruoyi.utils.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@Api(tags = "小程序端-轮播图")
@RestController
@RequestMapping("/app/figure")
public class AppFigureController {
    @Autowired
    private ITBannerService tBannerService;
    /**
     * 获取轮播图信息
     */
    @ApiOperation("获取轮播图信息")
    @PostMapping("/getAll")
    public AjaxResult<TBanner> getAll() {
        List<TBanner> list =  tBannerService.selectTBannerList(null);
        return AjaxResult.success(list);
    }
}
